<?php
namespace app\home\controller;

use cmf\controller\BaseController;
use think\Db;

class ArticleController extends BaseController
{
    public function index()
    {
        $id=$this->request->param('id', 0, 'intval');
        $article=Db::name("portal_post")->where('id',$id)->where('post_status',1)->find();
       // print_r($article);exit;
        $this->assign('article',$article);
        return $this->fetch(":article");
    }
}
